package com.entmanage.base.hrm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.entmanage.common.utils.SecurityUtils;
import com.entmanage.base.hrm.mapper.HrmEmployeeEducationMapper;
import com.entmanage.base.hrm.domain.HrmEmployeeEducation;
import com.entmanage.base.hrm.service.IHrmEmployeeEducationService;

/**
 * 员工教育背景子Service业务层处理
 *
 * @author lsq
 * @date 2025-09-02
 */
@Service
public class HrmEmployeeEducationServiceImpl implements IHrmEmployeeEducationService
{
    @Autowired
    private HrmEmployeeEducationMapper hrmEmployeeEducationMapper;

    /**
     * 查询员工教育背景子
     *
     * @param eduId 员工教育背景子主键
     * @return 员工教育背景子
     */
    @Override
    public HrmEmployeeEducation selectHrmEmployeeEducationByEduId(Long eduId)
    {
        return hrmEmployeeEducationMapper.selectHrmEmployeeEducationByEduId(eduId);
    }

    /**
     * 查询员工教育背景子列表
     *
     * @param hrmEmployeeEducation 员工教育背景子
     * @return 员工教育背景子
     */
    @Override
    public List<HrmEmployeeEducation> selectHrmEmployeeEducationList(HrmEmployeeEducation hrmEmployeeEducation)
    {
        return hrmEmployeeEducationMapper.selectHrmEmployeeEducationList(hrmEmployeeEducation);
    }

    /**
     * 新增员工教育背景子
     *
     * @param hrmEmployeeEducation 员工教育背景子
     * @return 结果
     */
    @Override
    public int insertHrmEmployeeEducation(HrmEmployeeEducation hrmEmployeeEducation)
    {
        return hrmEmployeeEducationMapper.insertHrmEmployeeEducation(hrmEmployeeEducation);
    }

    /**
     * 修改员工教育背景子
     *
     * @param hrmEmployeeEducation 员工教育背景子
     * @return 结果
     */
    @Override
    public int updateHrmEmployeeEducation(HrmEmployeeEducation hrmEmployeeEducation)
    {
        return hrmEmployeeEducationMapper.updateHrmEmployeeEducation(hrmEmployeeEducation);
    }

    /**
     * 批量删除员工教育背景子
     *
     * @param eduIds 需要删除的员工教育背景子主键
     * @return 结果
     */
    @Override
    public int deleteHrmEmployeeEducationByEduIds(Long[] eduIds)
    {
        return hrmEmployeeEducationMapper.deleteHrmEmployeeEducationByEduIds(eduIds);
    }

    /**
     * 删除员工教育背景子信息
     *
     * @param eduId 员工教育背景子主键
     * @return 结果
     */
    @Override
    public int deleteHrmEmployeeEducationByEduId(Long eduId)
    {
        return hrmEmployeeEducationMapper.deleteHrmEmployeeEducationByEduId(eduId);
    }

    @Override
    public List<HrmEmployeeEducation> selectEducationByEmpId(Long empId) {
        return hrmEmployeeEducationMapper.selectByEmpId(empId);
    }
}
